#!/bin/bash

# This script is the template for decoding the h264 video that
# the application sends over the network. It should be used to
# test that the application is sending data correctly. For
# example, if I tell the application to create a streaming
# pipeline that tosses packets over port 1234 to localhost,
# script will correctly pick up those packets, decode them, and
# display them. In production the server will be doing all of
# the decoding for us, and we don't have to worry about any of
# this.

gst-launch-0.10 udpsrc port=5000 caps="application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, payload=(int)96" ! \
rtph264depay ! ffdec_h264 ! autovideosink
